import request from '@/utils/request'

// 查询成果获奖列表
export function listAwards(query) {
  return request({
    url: '/business/awards/list',
    method: 'get',
    params: query
  })
}

// 查询成果获奖详细
export function getAwards(id) {
  return request({
    url: '/business/awards/' + id,
    method: 'get'
  })
}

// 新增成果获奖
export function addAwards(data) {
  return request({
    url: '/business/awards',
    method: 'post',
    data: data
  })
}

// 修改成果获奖
export function updateAwards(data) {
  return request({
    url: '/business/awards',
    method: 'put',
    data: data
  })
}

// 删除成果获奖
export function delAwards(id) {
  return request({
    url: '/business/awards/' + id,
    method: 'delete'
  })
}
